const app = getApp();

Component({
  properties: {
    params: {
      type: Object,
      value: {}
    }
  },
  options: {
    addGlobalClass: true
  },
  data: {
    result: []
  },
  ready() {
    const {
      layout,
      background,
      field,
      result
    } = this.properties.params

    this.setData({
      layout: layout == 1,
      background: background,
      field: field,
      result: result
    });
  },
  methods: {
    // getList() {
    //   const form = {
    //     data: this.data.data,
    //     category_id: this.data.category_id ? this.data.category_id : 0,
    //     status: this.data.status.toString(),
    //     limit: this.data.limit,
    //     sort: this.data.sort,
    //   };
      
    //   goods(form).then(res => {
    //     this.setData({ list: res.data });
    //   });
    // }
  }
})